<div class="wrap">
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
	<tr>
	<td width="54px" height="43px" class="fr_lefttop"></td>
	<td height="43px" class="fr_centertop" ></td>
	<td width="48px" height="43px" class="fr_righttop"></td>
	</tr>
	<tr>
	<td width="54px" class="fr_leftmiddle" >&nbsp;</td>
	<td class="fr_centermiddle">
<h2>
{if $smarty.get.sub1 eq "profile"}
{t}Edit Your Profile{/t}
{else}
{t}Edit User{/t}
{/if}
</h2>
{if $smarty.session.u_isadmin == "1"}
<form name="edituser" id="edituser" method="post" 
	action="?mod={$smarty.get.mod}&sub1=users">
	<input type="hidden" name="act" value="edituser" />
	{if $smarty.get.sub1 eq "profile"}
		<input type="hidden" name="user_id" value="{$THEUSER->ID}" />
	{else}
		<input type="hidden" name="user_id" value="{$smarty.get.id}" />
	{/if}
	<table class="editform" width="50%" align="center" cellpadding="5">
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="user_login">{t}User name{/t}</label></th>
			<td width="67%">
			<input name="user_login" id="user_login" type="text" readonly
			value="{$THEUSER->user_login}" size="40" maxlength="60"/>
			</td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="user_nicename">{t}Full name{/t}</label></th>
			<td width="67%">
			<input name="user_nicename" id="user_nicename" type="text" 
			value="{$THEUSER->user_nicename}" size="40" maxlength="50"/>
			</td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="user_email">{t}Email{/t}<br />{t}(required){/t}</label></th>
			<td width="67%">
			<input name="user_email" id="user_email" type="text" 
			value="{$THEUSER->user_email}" size="40" maxlength="100"/>
			</td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="user_url">{t}Website{/t}</label></th>
			<td width="67%">
			<input name="user_url" id="user_url" type="text" 
			value="{$THEUSER->user_url}" size="40" maxlength="100"/>
			</td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="middle">
			<label for="user_pass">{t}Password{/t}<br />{t}(twice){/t}</label></th>
			<td width="67%">
				<input name="user_pass" id="user_pass" type="password" value="{$THEUSER->user_pass}" size="40" maxlength="64"/>
				<input name="user_pass2" id="user_pass2" type="password" value="{$THEUSER->user_pass}" size="40" maxlength="64"/>
			</td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="middle">
			<label for="is_admin">{t}Is Administrator{/t}</label></th>
			<td width="67%">
				{if $THEUSER->is_admin == "1"}
					<input checked name="is_admin" id="is_admin" type="checkbox" value="1"/>
				{else}
					<input name="is_admin" id="is_admin" type="checkbox" value="0"/>
				{/if}
			</td>
		</tr>
		<tr>
			<td width="67%" colspan="2"  class="submit" align="right">
				<input type="submit" name="submit" 
				value="{t escape=no}Update &raquo;{/t}" />
			</td>
		</tr>
	</table>
</form>
{else}
{t}Access denied{/t}
{/if}
</td>
	<td width="48px" class="fr_rightmiddle"></td>
	</tr>
	<tr>
	<td width="54px" height="60px" class="fr_leftbot" ></td>
	<td height="60px" class="fr_centerbot"></td>
	<td width="48px" height="60px" class="fr_rightbot" ></td>
	</tr>
</table>
</div>
